<HTML xmlns="http://www.w3.org/1999/xhtml" xmlns:DOJO="" xmlns:OPENBRAVO="" xmlns:="http://www.w3.org/1999/xhtml">
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8"></META>
<TITLE>Activity</TITLE>
<LINK rel="SHORTCUT ICON" href="../../../../../web/images/favicon.ico" type="image/x-icon"></LINK>
<LINK rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Main/Main_Relation.css" id="paramCSS"></LINK>

<SCRIPT language="JavaScript" type="text/javascript" id="paramDirection">
var baseDirection = "../../../../../web/";
</SCRIPT>
<SCRIPT language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript" src="../utility/MessagesJS.js" type="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript" type="text/javascript" id="paramLanguage">
	LNG_POR_DEFECTO = "en_US";
</SCRIPT>
<SCRIPT language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript" src="../../../../../web/js/dojoConfig.js" type="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript" src="../../../../../web/js/dojo/dojo.js" typte="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript" src="../../../../../web/js/openbravo/core.js" typte="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript" src="../../../../../web/js/openbravo/widget/DataGrid.js" typte="text/javascript"></SCRIPT>

<SCRIPT language="JavaScript" type="text/javascript">
  //require statements

  //dojo.require("openbravo.core");

</SCRIPT>
<SCRIPT language="JavaScript" type="text/javascript">
function depurar(action, Formulario, valor) {
  var frm=document.frmMain;
  var key = eval("document.frmMain." + frm.inpKeyName.value);
  var myvalue = getSelectedValues();
  if (action != "DEFAULT" && (myvalue==null || myvalue=="")) return false;
  setInputValue(frm.inpKeyName.value, myvalue);
  if (action=="TAB") {
    if (isMultipleSelected()) {
      mensaje(13);
      return false;
    }
    if (inputValue(key)==null || inputValue(key)=="") {
      focoPrimerControl();
      return false;
    }
  } else if (action=="EDIT") {
    if (isMultipleSelected()) {
      mensaje(13);
      return false;
    }
    if (inputValue(key)==null || inputValue(key)=="") {
      mensaje(1);
      return false;
    }
  } else if (action=="DEFAULT") {
    if (isMultipleSelected()) {
      mensaje(13);
      return false;
    }
    if (inputValue(key)==null || inputValue(key)=="") {
      mensaje(1);
      return false;
    }
  }
  return depurarClient(action, Formulario, valor);
}

function selectFilters(params) {
  setGridFilters(params);
  updateGridDataAfterFilter();
  return true;
}
</SCRIPT>
<SCRIPT language="JavaScript" type="text/javascript" id="selectedColumn"></SCRIPT>
<SCRIPT language="JavaScript" type="text/javascript">dojo.require("openbravo.widget.DataGrid");
function updateHeader(liveGrid, offset) {
  dojo.byId('bookmark').innerHTML = (offset+1) + " - "+ (offset+liveGrid.visibleRows) + " / " + liveGrid.metaData.getTotalRows();
}
function onRowDblClick(cell) {
  var value = dojo.widget.byId('grid').getSelectedRows();
  if (value==null || value=="" || value.length>1) return false;
  setInputValue('inpcActivityId', value);
  return submitCommandForm('EDIT', true, null, document.frmMain.urlwin.value, '_self');
}
function getSelectedValues() {
  var value = dojo.widget.byId('grid').getSelectedRows();
  if (value==null || value.length==0) return "";
  return value[0];
}
function isMultipleSelected() {
  var value = dojo.widget.byId('grid').getSelectedRows();
  if (value==null || value=="") return false;
  return (value.length>1);
}
function onGridLoadDo() {
  if (selectedRow==null) return true;
  if (selectedRow<=0) dojo.widget.byId('grid').goToFirstRow();
  else dojo.widget.byId('grid').goToRow(selectedRow);
  if (orderByPositions!=null && orderByPositions.length>0) {
    var total = orderByPositions.length;
    for (var i=0;i<total;i++) {
      dojo.widget.byId('grid').setSortedColumns(orderByPositions[i], orderByDirections[i]);
    }
  }
  dojo.widget.byId('grid').setFocus();
  return true;
}
function setGridFilters(newparams) {
  var params = [];
  params["newFilter"] = "1";
  if (newparams!=null && newparams.length>0) {
    var total = newparams.length;
    for (var i=0;i<total;i++) {
      params[newparams[i][0]] = newparams[i][1];
    }
  }
  dojo.widget.byId('grid').setRequestParams(params);
  return true;
}
function updateGridData() {
  dojo.widget.byId('grid').refreshGridData();
  return true;
}
function updateGridDataAfterFilter() {
  dojo.widget.byId('grid').refreshGridDataAfterFilter();
  return true;
}
function depurarClient(action, Formulario, valor) {
  var frm=document.frmMain;

  return true;
}
</SCRIPT>
<SCRIPT language="JavaScript" type="text/javascript" id="keyMap"></SCRIPT>
<SCRIPT language="JavaScript" type="text/javascript">
  //all dojo.require above this line
  dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
</SCRIPT>
</HEAD>
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');" onresize="resizeArea(true);">
<FORM id="form" method="POST" action="Activity_Edition.html" name="frmMain">
<INPUT type="hidden" name="Command"></INPUT>
<INPUT type="hidden" name="inpTabId" value="249"></INPUT>
<INPUT type="hidden" name="inpParamSessionDate" value="" id="paramSessionDate"></INPUT>
<INPUT type="hidden" name="inpwindowId" value="" id="paramWindowId"></INPUT>
<INPUT type="hidden" name="inpcActivityId" value=""></INPUT>
<INPUT type="hidden" name="inpkeyColumnId" value="C_Activity_ID"></INPUT>
<INPUT type="hidden" name="inpTableId" value="316" id="paramTableId"></INPUT>
<INPUT type="hidden" name="inpKeyName" value="inpcActivityId"></INPUT>
<INPUT type="hidden" name="urlwin" value="Activity_Edition.html" id="urlwin"></INPUT>
<TABLE height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
    <TR>
      <TD valign="top" id="tdleftTabs"></TD>
      <TD valign="top">
        <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="Main_ContentPane_Left" id="tdleftSeparator">
          <TR><TD class="Main_NavBar_bg_left"></TD></TR>
          <TR><TD class="Main_ToolBar_bg_left" valign="top"></TD></TR>
          <TR><TD class="Main_Client_bg_left"></TD></TR>
          <TR><TD class="Main_Bottom_bg_left"></TD></TR>
        </TABLE>
      </TD>
      <TD valign="top">
        <DIV class="Main_ContentPane_NavBar" id="tdtopButtons"></DIV>
        <DIV class="Main_ContentPane_ToolBar" id="paramToolBar"></DIV>
        <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="Main_ContentPane_TabPane" id="tdtopTabs">
          <TR id="paramParentTabContainer"></TR>
          <TR id="paramMainTabContainer"></TR>
          <TR id="paramChildTabContainer"></TR>
        </TABLE>
        <DIV class="Main_ContentPane_Client" style="overflow: auto; display: none;" id="client">
          <TABLE summary="" id="sectionDetail">
            <TR>
              <TD>
                
                <TABLE cellpadding="0" cellspacing="0" id="messageBoxID" class="MessageBoxyy">
  <TBODY>
  <TR class="MessageBox_TopMargin">
    <TD class="MessageBox_LeftMargin"></TD>
    <TD></TD>
    <TD class="MessageBox_RightMargin"></TD>
  </TR>
  <TR>
    <TD class="MessageBox_LeftMargin"></TD>
    <TD>

      <TABLE cellpadding="0" cellspacing="0" style="width: 100%;">
        <TBODY>
        <TR>
          <TD>
            <DIV class="MessageBox_TopLeft"></DIV>
            <DIV class="MessageBox_Left"></DIV>
          </TD>
          <TD class="MessageBox_bg">

            <TABLE class="MessageBox_Top">
            <TBODY>
              <TR>
                <TD>
                  <SPAN>
                  <TABLE cellpadding="0" cellspacing="0" class="MessageBox_Body_ContentCell">
                    <TBODY>
                    <TR>
                      <TD class="MessageBox_Icon_ContentCell">
                        <DIV class="MessageBox_Icon"></DIV>
                      </TD>
                      <TD style="vertical-align: top;" id="messageBoxIDContent">
                        <SPAN>
                          <DIV class="MessageBox_TextTitle" id="messageBoxIDTitle">
                            Info: AccessTableWithNoView
                          </DIV>
                          <DIV class="MessageBox_TextDescription" id="messageBoxIDMessage">
                            The current information is empty.
                          </DIV>
                          <DIV class="MessageBox_TextSeparator"></DIV>
                        </SPAN>
                      </TD>
                    </TR>
                    </TBODY>
                  </TABLE>
                  </SPAN>
                </TD>
              </TR>
              </TBODY>
            </TABLE>

          </TD>
          <TD class="MessageBox_RightTrans">
            <DIV class="MessageBox_TopRight"></DIV>
            <DIV class="MessageBox_Right"></DIV>
          </TD>
        </TR>
        <TR>
          <TD rowspan="2" class="MessageBox_BottomLeft">
          </TD>
          <TD class="MessageBox_BottomTrans MessageBox_bg">
          </TD>
          <TD rowspan="2" class="MessageBox_BottomRight">
          </TD>
        </TR>
        <TR>
          <TD class="MessageBox_Bottom">
          </TD>
        </TR>
        </TBODY>
      </TABLE>

    </TD>
    <TD class="MessageBox_RightMargin"></TD>
  </TR>
  <TR class="MessageBox_BottomMargin">
    <TD class="MessageBox_LeftMargin"></TD>
    <TD></TD>
    <TD class="MessageBox_RightMargin"></TD>
  </TR>
  </TBODY>
</TABLE>
                  <TABLE width="100%" cellspacing="0" cellpadding="0" border="0" class="Main_Client_TableRelation"><TR><TD><div id="grid" dojoType="openbravo:DataGrid"
      structureUrl="../utility/DataGrid.html?Command=STRUCTURE&inpadTabId=249&inpadWindowId=134" 
      dataUrl="../utility/DataGrid.html?Command=DATA&inpadTabId=249&inpadWindowId=134" 
      updatesUrl="../utility/DataGrid.html?Command=UPDATE&inpadTabId=249&inpadWindowId=134" 
      numRows="20" 
      editable="false" sortable="true" 
      deleteable="true" 
      onInvalidValue="alert" 
      onScroll="updateHeader" 
      onGridLoad="onGridLoadDo"
      bufferSize="3.0"
      showLineNumbers="true" 
      maxWidth="94%" preventCache="true" useCache="true" cacheContent="false">
    </div>
<script>djConfig.searchIds.push("grid");</script></TD></TR></TABLE>
              </TD>
            </TR>
          </TABLE>
        </DIV>
        <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="Menu_ContentPane_Bottom" id="tdbottomSeparator">
          <TR>
            <TD class="Main_Bottom_bg"><IMG src="../../../../../web/images/blank.gif" border="0"></IMG></TD>
          </TR>
        </TABLE></TD>
      <TD valign="top">
        <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="Main_ContentPane_Right" id="tdrightSeparator">
            <TR><TD class="Main_NavBar_bg_right"></TD></TR>
            <TR><TD class="Main_ToolBar_bg_right" valign="top"></TD></TR>
            <TR><TD class="Main_Client_bg_right"></TD></TR>
            <TR><TD class="Main_Bottom_bg_right"></TD></TR>
        </TABLE>
      </TD>
    </TR>
  </TABLE></FORM>


</BODY></HTML>